<?
$this->layout = 'customMain';
$this->coreCss = false;
Yii::app()->clientScript->registerLessFile(Yii::getPathOfAlias('views.layouts.less.' . $this->module->id ) . '/' . $this->id . '.less');
?>

<section class="wrap">
	<h1>
		<img src="<?=Yii::app()->asset->getBaseAsset()?>/images/logo_w.png" alt="<?=Yii::app()->name;?>" />
	</h1>
	<?$form = $this->beginWidget('CActiveForm', array(
		'enableClientValidation'=>true,
		'htmlOptions' => array (
			'class' => 'form-horizontal'
		)
	))?>
		<div class="login">
			<ul>
				<li class="<?=($adminUser->hasErrors('username') ? 'error' : '')?>">
		            <?=$form->textField($adminUser, 'username', array('class' => 'input', 'placeholder' => $adminUser->getAttributeLabel('username')))?>
				</li>
				<li class="<?=($adminUser->hasErrors('password') ? 'error' : '')?>">
	            	<?=$form->passwordField($adminUser, 'password', array('class' => 'input', 'placeholder' => $adminUser->getAttributeLabel('password')))?>
				</li>
			</ul>
			<button class="btn" name="submit" type="submit">登录</button>
		</div>
	<?$this->endWidget()?>
</section>
<?
$script = <<<EOF
Core.use('global');
EOF;
Yii::app()->clientScript->registerScript($this->id, $script);
?>